package com.example.happiness.service.user.Impl;

import com.example.happiness.mapper.ChatMapper;
import com.example.happiness.pojo.Chat;
import com.example.happiness.service.user.UserChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserChatServiceImpl implements UserChatService {
    @Autowired
    ChatMapper chatMapper;

    public List<Chat> getChat(String userid) {
        return chatMapper.getChats(userid);
    }
}
